package com.gxa.ibear.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author gxa
 * @since 2023-11-21
 */
@Getter
@Setter
@TableName("tb_goods")
@ApiModel(value = "Goods对象", description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品id")
      @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    @ApiModelProperty("商品name")
    @TableField("goos_name")
    private String goosName;

    @ApiModelProperty("商品价格")
    @TableField("goods_price")
    private BigDecimal goodsPrice;

    @ApiModelProperty("商品备注")
    @TableField("goods_dec")
    private String goodsDec;

    @ApiModelProperty("商品分类")
    @TableField("goods_sort")
    private String goodsSort;

    @ApiModelProperty("商品删除 默认0存在 1被删除")
    @TableField("goods_del")
    private Integer goodsDel;

    @ApiModelProperty("商品上架 默认0 未上架 1已上架")
    @TableField("goods_list")
    private Integer goodsList;

    @ApiModelProperty("商品图片")
    @TableField("goods_image")
    private String goodsImage;

    @ApiModelProperty("商品创建时间")
    @TableField("goods_created")
    private LocalDateTime goodsCreated;

    @ApiModelProperty("商品被收藏数")
    @TableField("goods_collect")
    private Long goodsCollect;

    @ApiModelProperty("商品成本")
    @TableField("goods_cost")
    private BigDecimal goodsCost;

    @ApiModelProperty("商品单位")
    @TableField("goods_unit")
    private String goodsUnit;

    @ApiModelProperty("商品数量")
    @TableField("goods_num")
    private Long goodsNum;

    @ApiModelProperty("商品编号")
    @TableField("goods_bh")
    private String goodsBh;

    @ApiModelProperty("商家id")
    @TableField("goods_merchant_id")
    private Integer goodsMerchantId;


}
